package org.frv.wispr.business;

import org.springframework.beans.factory.annotation.Required;

import java.util.Collection;

/**
 * Copyright (c) 2006 TomTom International B.V. All rights reserved.
 * TomTom PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */
public class AccountEntryServiceImpl implements AccountEntryService {
    private AccountEntryRepository repository;

    public Collection<AccountEntry> getAccountEntriesForAccount(Long accountId) {
        return repository.findAllByAccountId(accountId);
    }

    @Required
    public AccountEntryRepository getRepository() {
        return repository;
    }

    public void setRepository(AccountEntryRepository repository) {
        this.repository = repository;
    }
}
